import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] score = new int[n];
        int count_a = 0;
        int count_b = 0;
        int count_c = 0;
        int count_d = 0;
        int count_e = 0;
        int i = 0;
        for (i = 0; i < n; i++) {
            score[i] = scan.nextInt();
            if (score[i] >= 90) {
                count_a++;
            } else if (score[i] >= 80) {
                count_b++;
            } else if (score[i] >= 70) {
                count_c++;
            } else if (score[i] >= 60) {
                count_d++;
            } else {
                count_e++;
            }
        }
        System.out.printf("%d %d %d %d %d\n", count_a, count_b, count_c, count_d, count_e);
    }
}
